package edu.sctu.practice.class01.fengleilin.test18;

/**
 * Created by fll on 2015/11/2.
 */

/**
 * 定义一个小汽车类Car，继承Auto，并添加空调、CD等成员变量，覆盖加速，减速的方法、classAuto
 */
public class Car extends Auto {

    String air;
    String CD;

    public Car(int num, String color, int weight,String air, String CD) {
        super(num, color, weight);
        this.air = air;
        this.CD = CD;
    }

    public Car(int speed) {
        super(speed);
    }

}
